/*
 * @Author: TY.潼教练 3175152880@qq.com
 * @Date: 2024-08-16 17:52:44
 * @LastEditors: TY.潼教练 3175152880@qq.com
 * @LastEditTime: 2024-08-27 21:10:19
 * @FilePath: \ZTWork\src\service\assist\knowledge\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
*@Author: QWP
*@Description: 知识库相关接口
*@Date 2024-08-06 19:04
*/
import request from '@/http'

// 列表分页查询
export const page = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTPolicy/page',
    data: data
  })
}


// 新增
export const add = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTPolicy',
    data: data
  })
}



// 删除
export const del  = async (data: Array<any>) => {
  return await request.post({
    url: '/api/bizz/docTPolicy/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}


// 知识库类分页查询
export const docPage = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTPolicyType/page',
    data: data
  })
}

// 知识库类新增
export const docAdd = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTPolicyType',
    data: data
  })
}



// 知识库类删除
export const docDel  = async (data: Array<any>) => {
  return await request.post({
    url: '/api/bizz/docTPolicyType/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}

